<?php use_helper('Validation') ?>

<h1>User Profile</h1>

<?php echo form_tag('@edituser') ?>
<label>User Name</label>
<?php echo $sf_user->getGuardUser()->getUsername(); ?>
<label>Password</label>
<?php echo "******** [" . link_to('edit password','@editpassword') ."]" ?>
<label>First Name</label>
<?php echo form_error('firstname') ?>
<?php echo input_tag('firstname',$sf_params->get('firstname',$sf_user->getGuardUser()->getProfile()->getFirstName())) ?>
<label>Last Name</label>
<?php echo form_error('lastname') ?>
<?php echo input_tag('lastname',$sf_params->get('lastname',$sf_user->getGuardUser()->getProfile()->getLastName())) ?>
<label>Email</label>
<?php echo $sf_user->getGuardUser()->getProfile()->getEmailAddress() ?>
<?php echo " [".link_to('edit email','@editemail') . "]"?>
<br /><br />
<?php echo submit_tag('Submit') ?>
</form>